package com.mengtian_tech.tju.dataquery.api.model.dataAIMysql;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "sys_role")
public class SysRole {
	
	@Id
    @Column(name = "id")
	private String id;
	
	@Column(name = "name",length = 40)
	private String name;
	
	@Column(name = "remark",length = 100)
	private String remark;
	
	/**
	 * 是否默认角色
	 */
	@Column(name = "is_default")
	private Boolean isDefault;
	
	@Transient
	private List<SysMenu> menuList = new ArrayList<SysMenu>();
	
	
	@Column(name="delete_flag")
	private Integer deleteFlag;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Boolean getIsDefault() {
		return isDefault;
	}

	public void setIsDefault(Boolean isDefault) {
		this.isDefault = isDefault;
	}

	public List<SysMenu> getMenuList() {
		return menuList;
	}

	public void setMenuList(List<SysMenu> menuList) {
		this.menuList = menuList;
	}

	public Integer getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(Integer deleteFlag) {
		this.deleteFlag = deleteFlag;
	}
	
	
}
